<div class="layui-row hide mar-bottom-10" id="formDemo">
    <input type="hidden" name="is_system[]" value="{is_system}">
    <input type="hidden" name="setting[]" value="{setting}">
    <div class="layui-col-xs12 layui-col-sm12 layui-col-md5">
        <div class="layui-row layui-col-space3">
            <div class="layui-col-xs4 layui-col-sm4 layui-col-md3">
                <input name="title[]" placeholder="设置项名称" required="" lay-verify="required" class="layui-input" value="{title}">
            </div>
            <div class="layui-col-xs8 layui-col-sm8 layui-col-md7">
                {field}
            </div>
            <div class="layui-col-xs3 layui-col-sm3 layui-col-md2 onlyPc">
                <div class="layui-btn-group" style="width:100%">
                    <button class="layui-btn" type="button" title="点击配置可选项"><i class="layui-icon layui-icon-set"></i></button>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-xs12 layui-col-sm12 layui-col-md7 onlyPc">
        <div class="layui-row layui-col-space3">
            <div class="layui-col-xs3 layui-col-sm3 layui-col-md3">
                <input name="setkey[]" placeholder="英文唯一标识符" required="" lay-verify="required" class="layui-input" value="{setkey}">
            </div>
            <div class="layui-col-xs4 layui-col-sm4 layui-col-md3">
                <select name="type[]" lay-filter="type">
                    <option value="text">文本框</option>
                    <option value="number">数字</option>
                    <option value="textarea">多行文本</option>
                    <option value="password">密码</option>
                    <option value="switch">开关</option>
                    <option value="select">单选</option>
                    <option value="multiSelect">多选</option>
                </select>
            </div>
            <div class="layui-col-xs5 layui-col-sm5 layui-col-md6">
                <div class="layui-btn-group" style="width:100%">
                    <button class="layui-btn" type="button"><i class="layui-icon layui-icon-up"></i></button>
                    <button class="layui-btn" type="button"><i class="layui-icon layui-icon-down"></i></button>
                    <button class="layui-btn" type="button"><i class="layui-icon layui-icon-delete"></i></button>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="layui-fluid z-main">
    <pre class="layui-code">
此处可自定义全站设置项，系统启用缓存，但当每次访问此页或在此页保存设置时，均会更新缓存
系统设置项不可删除和修改设置项信息，仅可修改设置项内容
设置项可在模板中通过“$settings.标识符”的方式获取，如$settings['sitename']
设置项可在控制器中通过“$this->settings['标识符']”的方式获取，如$this->settings['sitename']
在其余界面可通过\think\Facade\Cache::get('settings')的方式获取所有设置项</pre>
    <form class="layui-form" method="post" id="navForm">
        <button type="button" id="add" class="layui-btn onlyPc">新增</button>
        <button lay-submit lay-filter="save" class="layui-btn">保存</button>
    </form>
</div>